home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
lib
/
partman
/
update.d
/
80visual
< prev
next >
Wrap
Text File
|
2008-10-29
|
500b
|
30 lines
#!/bin/sh
dev=$1
num=$2
id=$3
size=$4
type=$5
fs=$6
path=$7
shift; shift; shift; shift; shift; shift; shift
name=$*
cd $dev
mkdir -p $id
if [ ! -f visuals ]; then
for i in /lib/partman/valid_visuals.d/*; do
if [ -x "$i" ]; then $i; fi
done |
sed 's/ .*//' |
grep '^number$\|^type$\|^size$\|^name$\|^filesystem$\|^bootable$\|^method$\|^mountpoint$' >visuals
fi
visuals=$(cat visuals)
for v in $visuals; do
/lib/partman/visual.d/$v $dev $num $id $size $type $fs $path $name
done >$id/view